<template>
	<view class="themeItem">
		<navigator url="/pages/classifylist/classifylist" class="box" v-if="!isMore">
			<image src="../../common/images/preview_small.webp" mode="aspectFill" class="pic"></image>
			<view class="tab">
				3天前更新
			</view>
			<view class="mask">
				动图图片
			</view>

		</navigator>
		<navigator url="/pages/classify/classify" open-type="reLaunch" class="box more"  v-if="isMore">
			<image src="../../common/images/more.jpg" mode="aspectFill" class="pic"></image>
			<view class="mask">
				<uni-icons type="more-filled" size="34" color="#fff"></uni-icons>
				<view class="text">
					更多
				</view>

			</view>

		</navigator>
	</view>
</template>

<script setup>
	// import {defineProps} from 'vue'
	defineProps({
		isMore: {
			type: Boolean,
			default: false
		}
	})
</script>

<style lang="scss" scoped>
	.themeItem {
		.box {
			height: 340rpx;
			border-radius: 10rpx;
			overflow: hidden;
			position: relative;

			.pic {
				width: 100%;
				height: 100%;
			}

			.mask {
				position: absolute;
				width: 100%;
				height: 70rpx;
				bottom: 0;
				left: 0;
				background: rgba(0, 0, 0, 0.2);
				color: #fff;
				display: flex;
				align-items: center;
				justify-content: center;
				backdrop-filter: blur(20rpx);
				font-weight: 600;
				font-size: 30rpx;
			}

			.tab {
				position: absolute;
				// width: 100%;
				// height: 70rpx;
				top: 0;
				left: 0;
				background: rgba(250, 129, 90, 0.7);
				color: #fff;
				font-size: 22rpx;
				padding: 6rpx 14rpx;
				border-radius: 0 0 20rpx 0;
				transform: scale(1.2);
				transform-origin: left top;
				// display: flex;
				// align-items: center;
				// justify-content: center;
				// backdrop-filter: blur(20rpx);
				// font-weight: 600;
			}
		}

		.box.more {
			.mask {
				width: 100%;
				height: 100%;
				flex-direction: column;

			}

			.text {
				font-size: 28rpx;

			}
		}
	}
</style>